Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

142
Views
Cada vez que se ejecuta mi código, aparece como "javascript"
<!DOCTYPE html> <html> <head> <style> </style> </head> <body> <script> //variables// var x = Math.floor((Math.random() * 5) + 1); var y; //variable y// if (x = 1) { y = 'javascript'; } else if (x = 2) { y = 'html'; } else if (x = 3) { y = 'python'; } else if (x = 4) { y = 'swedish'; } else if (x = 5) { y = 'your choice'; } else { y = 'error'; } //what should be printed// document.write('<h3>' + y + '</h3>'); </script> </body>

Estoy tratando de hacer un código javascript que decida en qué me voy a concentrar durante el día, pero aparece como "javascript" cada vez que intento cargarlo. Podría tener un poco de código incorrecto o alguna sintaxis no válida, no estoy completamente seguro de qué podría estar mal porque soy bastante nuevo en javascript.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!